const koa = require("koa")
const router = require("koa-router")();
const cors =  require("koa2-cors");
const app =  new koa();
router.get("/",async ctx=>{
    ctx.body =  require("./data")
})
app.use(cors());
app.use(router.routes());
app.listen(4000)